* {
  box-sizing: border-box;
}

:root {
  --theme: rgb(108, 99, 255);
  --grey: rgb(61, 59, 59);
}

main {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  /* background-color: black; */
  color: #fff;
}

/*====== typography ======*/

main h1 {
  font-weight: 700;
  color: #fff;
  font-size: 1.75rem;
}

main h2 {
  font-weight: 700;
  color: #000;
  font-size: 1.75rem;
}

main .intro {
  font-size: 1.15rem;
  margin-bottom: 2.5em;
}

main span {
  color: #fda039;
}

main .black {
  font-weight: 700;
  color: #000;
}

/*==== main-grid Layout ====*/

.main-grid {
  display: grid;
  grid-template-columns: minmax(1em, 1fr) minmax(0px, 500px) minmax(1em, 1fr);
  grid-column-gap: 2em;
}

/* ==== Layout ====*/

.header {
  background: #000;
}

.header-content {
  display: flex;
  flex-direction: row;
  grid-column: 2 / -2;
}

.logo {
  background: #fda039;
  color: #000;
  font-weight: 700;
  padding: 1em 0.5em;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.25rem;
}

.navigation {
  position: fixed;
  background: #000;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 100%;
  transform: translateX(0);
  transition: transform 250ms;
}

.nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  font-size: 3rem;
}

.nav-link {
  text-decoration: none;
  color: #fda039;
}

.nav-link:hover,
.nav-link:focus,
.close-nav:hover,
.close-nav:focus,
.open-nav:hover,
.open-nav:focus {
  color: #fff;
  cursor: pointer;
}

.open-nav {
  border: 0;
  background: 0;
  color: #fff;
  padding: 0.5em;
  margin-left: auto;
  font-size: 1em;
}

.navigation-open {
  transform: translateX(-100%);
}

.close-nav {
  border: 0;
  background: 0;
  color: #fda039;
  font-weight: 700;
  font-size: 3rem;
  padding: 0.5em;
  position: absolute;
}

.current {
  border-bottom: 1px solid #fda039;
}

main {
  background-color: #fff;
  color: #000;
  grid-column: 2 /-2;
}

.head {
  grid-column: 2 / -2;
  text-align: center;
  margin-top: 3em;
}

.page-title {
  color: #000;
  font-size: 2.5rem;
  justify-self: center;
}

.main-image {
  grid-column: 2 / -2;
  object-fit: cover;
  max-width: 100%;
  display: block;
}

.main-text {
  grid-column: 2 / -2;
  margin-top: 3em;
  margin-bottom: 3em;
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  margin-top: 1em;
  background: var(--theme);
  margin-left: auto;
  margin-right: auto;
}

.sub {
  margin-top: 3em;
}

/*==== footer ====*/

.footer > * {
  grid-column: 2 / -2;
}

.footer {
  background: #ebebeb;
  color: #000;
}

.social {
  order: -1;
  font-size: 3rem;
  padding-top: 1em;
  padding-right: 2em;
  /* padding-bottom: 2em; */
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.icon {
  color: #000;
}
.icon:hover,
.icon:focus {
  cursor: pointer;
  color: #6c63ff;
}

.footer-text {
  display: flex;
  flex-direction: column;
}

.end {
  text-align: center;
  margin-bottom: 0;
}
.copyright {
  font-size: 1.1rem;
  padding-top: 1em;
  text-align: center;
  font-weight: 700;
}

.footer-text,
.copyright {
  opacity: 0.4;
}

@media (min-width: 600px) {
  .main-grid {
    grid-template-columns: minmax(1em, 1fr) repeat(3, minmax(20px, 320px)) minmax(
        1em,
        1fr
      );
  }

  .open-nav,
  .close-nav {
    display: none;
  }

  .navigation {
    position: initial;
  }

  .nav-list {
    flex-direction: row;
    justify-content: flex-start;
  }

  .nav-link {
    margin-left: 1em;
    font-size: 1.7rem;
  }

  .logo {
    padding: 0.5em 1em;
    text-align: center;
  }

  .head {
    grid-column: 3 / -3;
  }

  .page-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
    background: #6c63ff;
    margin-right: auto;
    margin-left: auto;
    margin-top: 10px;
  }

  .main-image {
    grid-column: 2;
    margin-top: 1.3em;
  }

  .main-text {
    grid-column: 3 / span 2;
    margin-top: 0;
  }

  .section-title::after {
    margin-left: 0;
  }

  .footer {
    padding-top: 2em;
    padding-bottom: 2em;
  }

  .footer-text {
    grid-column: 2 / span 2;
  }

  .social {
    grid-column: span1;
  }

  .icon {
    margin: 0.5em;
  }

  .footer-text {
    width: 50vw;
    margin-left: 0;
    order: -1;
  }
  .social div {
    height: fit-content;
    -webkit-transition: all 1.2s ease-in-out;
    -moz-transition: all 1.2s ease-in-out;
    -ms-transition: all 1.2s ease-in-out;
    -o-transition: all 1.2s ease-in-out;
    transition: all 1.2s ease-in-out;
  }
  .social div::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f137";
    -webkit-transition: all 1.2s ease-in-out;
    -moz-transition: all 1.2s ease-in-out;
    -ms-transition: all 1.2s ease-in-out;
    -o-transition: all 1.2s ease-in-out;
    transition: all 1.2s ease-in-out;
  }
  .social div:hover::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0a8";
    cursor: pointer;
    -webkit-transition: all 1.2s ease-in-out;
    -moz-transition: all 1.2s ease-in-out;
    -ms-transition: all 1.2s ease-in-out;
    -o-transition: all 1.2s ease-in-out;
    transition: all 1.2s ease-in-out;
  }
  .end,
  .copyright {
    text-align: start;
  }
}
